Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export useful fields and functions #15

Merged
merged 2 commits into from
Apr 12, 2021
Merged

Conversation

whereswaldon
Copy link
Contributor

This PR simply replaces this package's Point type with the stdlib equivalent (which is structurally identical) and exports a useful image format conversion helper. Both of these changes make it easier to build custom image processing pipelines atop this package.

This also enables interoperation with other image software that is
already using the stdlib image.Point type.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This function is really useful for doing your own image processing pipeline
using the tools in this package. I would need to reimplement it if it wasn't
exported.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
Copy link
Owner

@esimov esimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@whereswaldon that's a good observation. Definitely it's a better approach using a built in function which exposes other points related operations and methods, then implementing your own according to your needs. PR merged it to back to the main branch.

@esimov esimov merged commit 06fa40a into esimov:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants